﻿<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>编辑学生信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%-- 
<link href="${pageContext.request.contextPath }/css/.css" type=text/css rel=stylesheet>
<link href="${pageContext.request.contextPath }/css/.css" type=text/css rel=stylesheet> 
--%>

<link rel="stylesheet" href="${pageContext.request.contextPath }/jquery/jquery.datepick.css" type="text/css">
<script type="text/javascript" src="${pageContext.request.contextPath }/jquery/jquery-1.4.2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/jquery/jquery.datepick.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/jquery/jquery.datepick-zh-CN.js"></script>
<script type="text/javascript">
	/* function fun(userId){
		if(userId == 0){
			
		}
	}; */
	$(function(){
		//使用class属性处理  'yy-mm-dd' 设置格式"yyyy/mm/dd"
		$('#nextDate').datepick({dateFormat: 'yy-mm-dd'}); 
	});
	function submitNext() {
		window.location.href = "${pageContext.request.contextPath }/customer/edit.jsp";
	}
</script>
<meta content="MSHTML 6.00.2900.3492" name=GENERATOR>
</head>
<body>
	<s:form action="editCustomer" namespace="/customer">
		<s:hidden name="studentId" value="%{studentId}"></s:hidden>
		<%-- <s:hidden name="lastDate" value="%{lastDate}"></s:hidden> --%>

		<table cellSpacing=0 cellPadding=5  border=0>
			<tr>
				<td>学生姓名：</td>
				<td>
					<s:textfield name="studentName" class="textbox" id="" style="width: 180px" maxLength="50" />
				</td>
			</tr>
			<tr>
				<td>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
				<td>
					<s:radio name="studentSex" list="#{'0':'男','1':'女'}" class="textbox" id="" />
				</td>
			</tr>
			<tr>
				<td>年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;龄：</td>
				<td>
					<s:textfield name="studentAge" class="textbox" id="" style="width: 180px" maxLength="50" />
				</td>
			</tr>
			<tr>	
				<td>负责员工 ：</td>
				<td>
				<s:select name="affiliatedTeacher.userId" list="affiliatedTeachers" listKey="userId" listValue="userName" headerKey="" class="textbox" id="" style="width: 180px">
				
				</s:select>

				</td>
			</tr>
			<tr>
				<td>爸爸电话：</td>
				<td>
					<s:textfield name="phone1" class="textbox" id="" style="width: 180px" maxLength="50" />
				</td>
			</tr>
			<tr>
				<td>妈妈电话：</td>
				<td>
					<s:textfield name="phone2" class="textbox" id="" style="width: 180px" maxLength="50" />
				</td>
			</tr>
			<tr>
				<td>下次联系日期：</td>
				<td>
					<s:textfield name="nextDate" class="textbox" id="nextDate" readonly="true" style="width: 180px" maxLength="50" />
				</td>
			</tr>
			<tr>
				<td>跟进状态：</td>
				<td>
					<s:textarea name="followUp" class="textbox" id="" style="width: 180px; height:50px"  />
				</td>
			</tr>
			<tr>
				<td>家庭住址：</td>
				<td>
					<s:textfield name="address" class="textbox" id="" style="width: 300px" />
				</td>
			</tr>
			<tr>
				<td>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</td>
				<td>
					<s:textarea name="remark" class="textbox" id="" style="width: 180px; height:50px"  />
				</td>
			</tr>
			<tr>
				<td></td>
			</tr>
			<tr>
				<td rowspan=2>
					<s:submit value="保存" />
					<button onclick="submitNext()">返 回</button>
				</td>
			</tr>
		</table>
	</s:form>
</body>
</html>
